﻿<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
    <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
    <name>EventSheetMain</name>
    <events>
        <event-group description="" title="Handle button clicked/touched">
            <sub-events>
                <event-block>
                    <conditions>
                        <condition id="3" name="On touched object" type="Touch">
                            <param id="0" name="Object">Button</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action behavior="Sine" id="0" name="Set active" type="Button">
                            <param id="0" name="State">1</param>
                        </action>
                        <action id="-16" name="Wait" type="System">
                            <param id="0" name="Seconds">Button.sine.Period</param>
                        </action>
                        <action behavior="Sine" id="0" name="Set active" type="Button">
                            <param id="0" name="State">0</param>
                        </action>
                    </actions>
                    <sub-events>
                        <comment>If frame is 0, this is Play button</comment>
                        <event-block>
                            <conditions>
                                <condition id="3" name="Compare frame" type="Button">
                                    <param id="0" name="Comparison">0</param>
                                    <param id="1" name="Number">0</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-25" name="Go to layout (by name)" type="System">
                                    <param id="0" name="Layout">&quot;LayoutLevelSelect&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                        <comment>If you have a option screen to let user set audio/music use this</comment>
                        <event-block disabled="1">
                            <conditions>
                                <condition id="3" name="Compare frame" type="Button">
                                    <param id="0" name="Comparison">0</param>
                                    <param id="1" name="Number">1</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-25" name="Go to layout (by name)" type="System">
                                    <param id="0" name="Layout">&quot;LayoutLevelSelect&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="" title="Mouse Cursor to Hand">
            <sub-events>
                <event-block>
                    <conditions>
                        <condition id="7" name="Cursor is over object" type="Mouse">
                            <param id="0" name="Object">Button</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="0" name="Set cursor style" type="Mouse">
                            <param id="0" name="Cursor style">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block>
                    <conditions>
                        <condition id="-22" name="Else" type="System" />
                    </conditions>
                    <actions>
                        <action id="0" name="Set cursor style" type="Mouse">
                            <param id="0" name="Cursor style">0</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-group>
    </events>
</c2eventsheet>
